const arr = [1, 2, 3]

// arr.unshift(0) //[0,1,2]

//arr.push(3) //[1,2,3]

arr.splice(1, 0, 3) //arr[1]

arr.pop()


console.log(arr);

